package com.zzj.security.jwt.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "jwt")
@Component
public class JwtProperties {
    /**
     * request header key
     */
    private String Header;
    /**
     * 秘钥
     */
    private String Secret;
    /**
     * 过期时间
     */
    private long Expiration;
    /**
     * token 的header
     */
    private String TokenHead;

    public String getHeader() {
        return Header;
    }

    public void setHeader(String header) {
        Header = header;
    }

    public String getSecret() {
        return Secret;
    }

    public void setSecret(String secret) {
        Secret = secret;
    }

    public long getExpiration() {
        return Expiration;
    }

    public void setExpiration(long expiration) {
        Expiration = expiration;
    }

    public String getTokenHead() {
        return TokenHead;
    }

    public void setTokenHead(String tokenHead) {
        TokenHead = tokenHead;
    }
}
